package designMode.trategy;

public abstract class Duck {

	FlyBehavior flybehavior;// ���нӿ�

	public Duck() {

	}

	public abstract void display();

	public void performFly() {
		flybehavior.fly();
	}

	public void swim() {
		System.out.println("All ducks float,even decoys!");
	}
}
